﻿@model ArunimaErp.Domain.productiondailyreport

@{
    ViewBag.Title = "Edit";

    Layout = null;
}

<script src="../../Scripts/Custom/dpr-entry.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function () {
        $('.dateTimePicker').datepicker({ dateFormat: "dd-M-yy" });
    });
</script>


@using (Ajax.BeginForm("Edit", "Dpr", new AjaxOptions
		{
			InsertionMode = InsertionMode.Replace, 
			HttpMethod = "POST",
			OnSuccess = "updateSuccess"
		}, new { @id = "dprDialogeForm" }))
	{
    @Html.ValidationSummary(true)

        @Html.HiddenFor(model => model.ProductionDailyReportId)

        <div id="left-column">
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.postyle.styleinfo.BuyerId, "Buyer Name")
                @Html.DropDownList("BuyerId", string.Empty)
                @Html.ValidationMessageFor(model => model.postyle.styleinfo.BuyerId)
            </div>
            </fieldset>

            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.postyle.StyleId, "Style No")
                @Html.DropDownList("StyleId", string.Empty)
                @Html.ValidationMessageFor(model => model.postyle.StyleId)
            </div>
            </fieldset>
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.PoStyleId, "Po No")
                @Html.DropDownList("PoStyleId", string.Empty)
                @Html.ValidationMessageFor(model => model.PoStyleId)
            </div>
            </fieldset>
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.Floor, "Floor")
                @Html.TextBoxFor(model => model.Floor)
                @Html.ValidationMessageFor(model => model.Floor)
            </div>
            </fieldset>
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.Line, "Line")
                @Html.TextBoxFor(model => model.Line, "Line")
                @Html.ValidationMessageFor(model => model.Line)
            </div>
            </fieldset>

            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.Date, "Date")
                @Html.TextBox("Date", DateTime.Now.ToString("dd-MMM-yyy"), new { @class = "dateTimePicker", @readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.Date)
            </div>
            </fieldset>

            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.Hour, "Hour")
                @Html.TextBoxFor(model => model.Hour)
                @Html.ValidationMessageFor(model => model.Hour)
            </div>
            </fieldset>
            
        </div>
        
        <div id="right-column">
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.Cutting, "Cutting")
                @Html.EditorFor(model => model.Cutting)
                @Html.ValidationMessageFor(model => model.Cutting)
            </div>
            </fieldset>

            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.SewingInput, "Sewing Input")
                @Html.EditorFor(model => model.SewingInput)
                @Html.ValidationMessageFor(model => model.SewingInput)
            </div>
            </fieldset>
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.TodaySewing, "Today Sewing")
                @Html.EditorFor(model => model.TodaySewing)
                @Html.ValidationMessageFor(model => model.TodaySewing)
            </div>
            </fieldset>

            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.SentPrintEmb, "Sent Print/Emb")
                @Html.EditorFor(model => model.SentPrintEmb)
                @Html.ValidationMessageFor(model => model.SentPrintEmb)
            </div>
            </fieldset>

            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.ReceivedPrintEmb, "Received Print")
                @Html.EditorFor(model => model.ReceivedPrintEmb)
                @Html.ValidationMessageFor(model => model.ReceivedPrintEmb)
            </div>
            </fieldset>
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.SentWash, "Sent Wash")
                @Html.EditorFor(model => model.SentWash)
                @Html.ValidationMessageFor(model => model.SentWash)
            </div>
            </fieldset>
            
            <fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.ReceivedWash, "Received Wash")
                @Html.EditorFor(model => model.ReceivedWash)
                @Html.ValidationMessageFor(model => model.ReceivedWash)
            </div>
            </fieldset>
            
            <fieldset>
            <div class="editor-field">
                 @Html.LabelFor(model => model.TodayFinish, "Today Finish")
                @Html.EditorFor(model => model.TodayFinish)
                @Html.ValidationMessageFor(model => model.TodayFinish)
            </div>
            </fieldset>
            
            @*<fieldset>
            <div class="editor-field">
                @Html.LabelFor(model => model.TodaySewingTarget, "Today Sewing Target")
                @Html.EditorFor(model => model.TodaySewingTarget)
                @Html.ValidationMessageFor(model => model.TodaySewingTarget)
            </div>
            </fieldset>*@
            
        </div>
}